package me.chyxion.blog.service;

import java.util.List;
import me.chyxion.blog.model.User;

/**
 * @author Shaun Chyxion <br>
 * chyxion@163.com <br>
 * Apr 19, 2018 16:47:21
 */
public interface UserService {

    /**
     * create user
     * @param user user
     */
    void create(User user);

    /**
     * list all users
     * @return users
     */
    List<User> list();

    /**
     * find user by id
     * @param id user id
     * @return user
     */
    User find(int id);

    /**
     * update user
     * @param user user
     */
    void update(User user);

    /**
     * delete user by id
     * @param id user id
     */
    void delete(int id);
}
